package com.cjy.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description 
 *
 * @Author chengjiye
 * @Date 2020-11-12 13:42
 */
@SuppressWarnings("ALL")
@Data
@TableName("user")
public class UserEntity extends Model<UserEntity> {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
                private Integer id;

    @ApiModelProperty(value = "姓名")
        private String name;

    @ApiModelProperty(value = "性别")
        private String sex;

    @ApiModelProperty(value = "年龄")
        private String age;

    @ApiModelProperty(value = "备注")
        private String memo;

    @ApiModelProperty(value = "是否删除，0 否，1 是")
        private Integer isDelete;


@Override
protected Serializable pkVal(){
            return this.id;
        }


        }
